#ifndef _CPU_DISPLAY_H
#define _CPU_DISPLAY_H

/*
 *  cpu_parse_display/cpu_display.h
 *  
 *              CPU Monitor 
 *
 *    Spring Semester.  044800.    Technion.
 *   Copyright (C) 2006  Evgeny Shulman  and Elizabeth Shtrom 
 */

#include "../cpu_consts.h"
#include "../cpu_common.h"
 
 
 
 /*  display_<type>
 *   =========== 
 *	display data from the selected type  
 *Input:  data<type>
 *        sel/vec - offset
 *        count   -number entries to display
 *Output:  
 *        0 on success.
*/
int display_regs      (regs_s  *);

 
int display_gdt      (cm_desc_t      *gdt, int sel,	int count);
int display_ldt      (cm_desc_t      *gdt, int sel,	int count);
int display_idt      (cm_gate_desc_t *idt, int vec,  int count );
int display_pgdir( void * pgdir, int index , int count );
int display_ptable( void * ptable , int index , int count );

#ifdef __KERNEL__
	#include <asm/processor.h> 	
	int display_tss(struct tss_struct  *);
#else	
	int display_tss(cm_tss_struct *);
#endif

int display_Xgt( struct Xgt_desc_struct *);

int display_idt_stats(im_irq_stat_s *im_irq_stat_data);


#endif /*_CPU_DISPLAY_H*/

